<?php
/**
 * <https://y.st./>
 * Copyright © 2015 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'title' => 'Pine trees are feasible with a little creativity',
	'body' => <<<END
<p>
	I was aware that Microsoft Office contains $a[DRM], but apparently, so can documents created with the noxious software suite.
	I received a couple unreadable documents in my inbox claiming to be &quot;protected&quot; by Microsoft Office.
	If you&apos;re going to send people documents, you should at least make them readable.
</p>
<p>
	At work today, I came up with a way to trick Minetest into allowing me to spawn a pine tree the way I want to spawn it.
	Namely, I can place each needle/cone node individually without choosing which will be needles and which will be cones.
	The problem is that when you place leaves individually, they have no chance of being replaced by fruit, unlike when you place branches and let the engine place leaves and fruit in a pattern around the branch.
	However, the tree spawning function allows you to specify a second leaf node and a probability that the second leaf node will be placed instead of the first.
	By telling the tree spawning function that the pine cone is actually a second type of leaf and setting the probability that the second leaf type will be placed to a probability that is consistent with fruit, I can cause pine cones to spawn randomly in the tree while still controlling the shape of the tree (that is, making the tree pointy like the pine trees spawned by the engine during map generation).
	As a bonus, that frees up the <code>fruit</code> node slot, which I can now set to snow and place on top of the tree, again, like the map-generated pine trees.
</p>
<p>
	My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
</p>
END
);
